<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of BPersonalApp
 *
 * @author jianfeng
 */
class BPersonalApp extends BServiceApp {
    
    const OPERATION_CREATESERVICE = "createService";
    const OPERATION_JOINSERVICE = "joinService";
   

    //put your code here
    public function addRolesToService($service) {
        
    }

    public function checkAccess($operation, $role) {
        
    }

    public function getOperations($role) {
        
    }

    public function registerAppMeta() {
        $meta = array();

        $meta['appname'] = 'My Personal';
        $meta['description'] = 'Description of BPersonalApp';

        $meta['visible'] = array('scope' => BService::NOEXISTSERVICE,
            'scopeType' => BServiceApp::SERVICESCOPETYPE, 'applyRule' => BServiceApp::INCLUDEAPPLYRULE);

        return $meta;
    }

    public function registerAppRoles() {
        
    }

    protected function createService() {
        
    }

    protected function joinService() {
        
    }   

    public function registerAppOperations() {
        
        return array(
            array('name'=>'CreateService','function'=>'createService','data'=>array('screenflow'=>'createService')),
            array('name'=>'JoinService','function'=>'joinService','data'=>array('screen'=>'BScreenJoinService'))        
        );        
    }
    
   
}

?>
